#!/usr/bin/python3
# _*_ coding: utf-8 _*_
#
# Copyright (C) 2024 - 2024 heihieyouheihei, Inc. All Rights Reserved 
#
# @Time    : 2024/8/7 14:31
# @Author  : Yuyun
# @File    : 随机分配红包.py
# @IDE     : PyCharm


#将固定金额的红包随机分配给n个人

import random
import math
import decimal
def Rand_packet(money , num):
    List_1 = []
    while num > 1:
        min_money = 1       #红包最小为1
        max_money = money / num * 2     #红包最大为平均数2倍
        # 随机生成一个红包金额
        # random_money = math.floor(max_money * random.random())
        #另一种随机生成红包方法
        random_money = round(max_money * random.random(), 3)        #3为舍入到小数点后的位数，即保留3位小数
        packet_money = min_money if random_money < min_money else random_money      #生成红包< 1则直接更换为最小值，> 1则保持生成值
        List_1.append(packet_money)     #列表中添加每个红包的金额
        money = round((money - packet_money), 3)       #计算剩余金额
        num -= 1        #计算剩余人数
    List_1.append(money)        #最后一人红包
    return List_1
def Rand_packet_remaining_people(total_aomount, n):
    if n <= 0:
        raise ValueError("people must > 0")
    if total_aomount <= 0:
        raise ValueError("money must > 0")
    money = []
    for i in range(n - 1):
        max_money = total_aomount /(n - i) * 2
        rand_money = random.uniform(0.01, max_money)        #随机生成的一个浮点数，范围在[0.01, max_money)之间
        money.append(rand_money)
        total_aomount -= rand_money
    money.append(total_aomount)     #最后一人获取剩余所有money
    return money

if __name__ == "__main__":
    money, num = map(int, input().split())
    try:
        # packet = Rand_packet(money, num)
        # print(packet)
        # print(sum(packet))
        money_people = Rand_packet_remaining_people(money, num)
        for i, m in enumerate(money_people, 1):
            print('people {} get {:.3f}'.format(i, m))
    except ValueError as v:
        print(v)






